// pages/nav/nav.js
Page({

  toTab() {
    wx.switchTab({
      url: '../bar/bar',
      success: (res) => {
        console.log(res)
      },
      fail: (err) => {
        console.log(err)
      }
    })
  },

  toNav() {
    wx.navigateTo({
      url: '../jigsaw/jigsaw',
      success: (res) => {
        console.log(res)
      },
      fail: (err) => {
        console.log(err)
      }
    })
  }
})